Jasmine / PhantomJS test utilities