Fix a couple of warnings in unit tests.