fixes warnings unit test