test for xhr