Added testing and refactored location or radio groups

Added testing for RadioGroup and Radio and moved all_groups to
RadioGroup.