Added test for before step hooks