tests for leader views
add global permission support