change test case not to use awaitTermination