test not forever run thread