Removed warnings in tests