Making non-async test in async test cases pass