Fixed minor warnings in tests.