Cpu mode test case with managedsave command.

Maybe you can leave the recover env steps in the ```finally``` block