Add test for after_setuid()