fix warnings in tests