Rewrite the test so that systems lacking getgroups don't try to use the supplied replacement function -- that depends on the existence of such a function.