created tests for groupByUntil
added tests for groupBy
added tests for puaseFor