Added testing class which primarily tests creation and insertion and some extraction methods. Minor changes in extractor and group.