Testing enviropment for sinon and jquery ajax