test and cleanup.