Add unit tests for listFilter