cleanup and test