fix warning in tests