Add backward steps and unit tests for step functionality.