unit test case for groupadd

Hi @jfindlay, Please review the groupadd_test case and let me know if you have any review comments.