added testing for assignment with a sub group