fix unit test warnings