test save and close