fixes in tests & disabled phantomJS since custom xhr.headers are not being propagated