fixing copy/paste failure
bug fixing and passing unit tests for validate_group()