integration test and cleanup