resolve test fails under threads