tests with predicate interface and lambda expressions.