[core] Fix tests for RemoteDjangoUserBackend