Added test for user permissions.