changed the way XHR calls are stubbed in frontendtests