test for xhr module