Fix swipe test

Make the conditions a bit more lenient, since different simulators have different precision. Still tests the fact that `swipe` works. Fixes #4136.