unit tests for cleanup