Add method for setting document slimmer headers

Also add tests for existing behaviour.