Fixed some warnings in tests.