Working javascript Angular tests with Karma/PhantomJS.