Fine-tuned tests for phantomjs