Fixing some tests and adding seq.group_by fn.