fix test and fix ambiguous "unspecified error event" message from jasmine