Wait for all tests to complete before finishing test task