Added tests for GroupDAO. Fixed group dao.