Switched to phantomJs for headless testing