Added tests for privileges.