Adding test to check if view permissions have been created.
Moving create_extra_permissions to the more appropriate permissions module.