test frame work pump thread exit: set flag then wake