Added a unit test for removeFromGroupByCode()

Added a unit test for removeFromGroupByCode()