TEST: added agent and header tests