Implement SaveChanges and write test