unit-test: swipe: fixed the destroy test.