separated test from patch generator
added offset_steps parameter