Test cleanup functions.