add unit test for predicate command
support for Predicate<T> instead of Func<T, bool>