Create test file for GenerateDurtaion

cleaned a bit Group class