Fix error in test cleanup.