SG.Ajax headers functionality and tests