Added unit test for harvesting unauthorized sources. Refs #18951.