Fix deleting orphans for clustered docs
Functional tests log in and out correctly.