tidying up tests for setRequestHeader being called at unexpected times