Adding groupRowsByBool with sample and tests