Pass Predicate Test

Fixed Predicate's filter function so that it passes test