added save changes method
added test for save changes