Added basic unit tests, gulp file, fixed errors with events and fixed finding a default step if active not present