Add tests for custom headers
Make customHeaders mutableDict private. Fixes #31.