LT-15397: Save Checked Pubs

Also fix a bug that associates pubs with the same config
multiple times; add a unit test

Change-Id: Ieb8ea49f3d57316e9b18a058ec5e9b0a5abe323d