UI testing: Mocking Ajax responses in PhantomJS · HackerTrans