Fixed warnings in unit tests.