add test to check if xhrFields made it through the constructor