How to perform headless testing using PhantomJS and Ghost Driver