changed karma test to run in phantom js