Get rid of warnings in tests