Fixing publisher filter behavior and adding tests