removed race condition on tests