adapt some tests for non-superuser environments