Fixing publisher filter behavior and adding tests, addressed CR comment

Fixing publisher filter behavior and adding tests as per request. Now we return the latest for each template when given a publisher, as opposed to just the latest from the templates (since a publisher usually has multiple templates).