Replace should with chai
Add direction to error event
Add test for migrator error event