Additional as_json tests
Moving header_merge() into Collection as private