Fixed deadlock between tests