SELECT plan(1);
SELECT is(
- $$<record xmlns="http://www.loc.gov/MARC21/slim"><leader>00881nam a2200193 4500</leader><datafield tag="600" ind1="1" ind2=" "><subfield code="a">Girdlestone, Cuthbert Morton,</subfield><subfield code="d">1895-1975</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Girdlestone, Cuthbert Morton,</subfield><subfield code="d">1895-1975</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Girdlestone, Cuthbert Morton,</subfield><subfield code="d">1895-1975</subfield></datafield><datafield tag="800" ind1="1" ind2=" "><subfield code="a">Girdlestone, Cuthbert Morton,</subfield><subfield code="d">1895-1975</subfield></datafield><datafield tag="905" ind1=" " ind2=" "><subfield code="r">600abcdfklmnopqrstvxyz[0~\)1$],100abcdfklmnopqrstvxyz[0~\)1$],700abcdfklmnopqrstvxyz[0~\)1$],800abcdfklmnopqrstvxyz[0~\)1$]</subfield></datafield></record>$$,
+ $$<record xmlns="http://www.loc.gov/MARC21/slim"><leader>00881nam a2200193 4500</leader><datafield tag="600" ind1="1" ind2=" "><subfield xmlns="http://www.loc.gov/MARC21/slim" code="a">Girdlestone, Cuthbert Morton,</subfield><subfield xmlns="http://www.loc.gov/MARC21/slim" code="d">1895-1975</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield xmlns="http://www.loc.gov/MARC21/slim" code="a">Girdlestone, Cuthbert Morton,</subfield><subfield xmlns="http://www.loc.gov/MARC21/slim" code="d">1895-1975</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield xmlns="http://www.loc.gov/MARC21/slim" code="a">Girdlestone, Cuthbert Morton,</subfield><subfield xmlns="http://www.loc.gov/MARC21/slim" code="d">1895-1975</subfield></datafield><datafield tag="800" ind1="1" ind2=" "><subfield xmlns="http://www.loc.gov/MARC21/slim" code="a">Girdlestone, Cuthbert Morton,</subfield><subfield xmlns="http://www.loc.gov/MARC21/slim" code="d">1895-1975</subfield></datafield><datafield tag="905" ind1=" " ind2=" "><subfield code="r">600abcdfklmnopqrstvxyz[0~\)1$],100abcdfklmnopqrstvxyz[0~\)1$],700abcdfklmnopqrstvxyz[0~\)1$],800abcdfklmnopqrstvxyz[0~\)1$]</subfield></datafield></record>$$,
(select authority.generate_overlay_template(marc) from authority.record_entry where id = 1),
'authority.generate_overlay_template includes indicators and excludes junk tags'
);