added macro wait_while for unit test