test(browser/compile): fix calls to Jasmine fail()

The fail() function in Jasmine expects an Error object as its first parameter. Also, there is no global alias for fail() so it must be accessed using this.fail(Error()).