fixed warnings in unit test