Fixing some unit tests; switching to phantomJS for running unit tests