Adding some extra tests for the cleanUp() function