updated tests to work with karma and phantomjs