added shortucts for xhr request; test for added code