Improve testing situation and add phantomjs for travis