Fix error handler after running gulp test