Fix test typos. Add test for PermissionMixin.