API for testing XHR/pushstate requests