Add tests for headers.py
Use patch, not patch.object