switched functional tests to use headless firefox instead of phantomjs