Test function perms