fixed tests for phantomjs <1.9.0