fix detection of jasmine test failures