CORE-4995: Added check to make sure the last arg grp cannot be deleted
Also added unit test to complement the issue.
Updated pom to add testing dependencies.