[#60589412] full coverage on filter

filter functionality now has code coverage.
also fixed some bugs in the process