Simplify testing of has_permission section of the docs