fixed test for awaitTermination