Updated xhr unit test