added a test for groupWhen to show the effect of using the predicate argument