make command executor test more robust
Delete the auto swap lock when deleting the repository