test self-cleanup