Stepper testing code