remove excess phantomjs usage, rewrite form tests