Agent headers 140915

I would still like to have some unit tests instead of integration tests if possible. We already do some to check the body, is it not possible to do something similar for the header?