Added versioning to clear_user_permission_cache, now passes tests