testing wait for return