initial version where phantomjs tests work fine