added a regression test for saving