Add rspec coverage for custom headers