permission tests