Change the test IP logic from or to and