Like filter implementation with tests