Updated sample-code with swipe test changes