test environment with karma and PhantomJS