Wait for concurrent tests to finish before teardown

ping @titanous