updated code to integrate bugsnag, fixing unit tests, gulp testing