fixed warnings in unit tests