support both phantomjs and firefox funcational tests