fix test
add documentation, example for step pattern
add test for pattern