mocking saving the data on change