Add tests for eligibleForCleanup