The save method is not tested at all in the unit test. Please add test coverage for it. You might find it easier to do as an integration test instead of a JavaScript unit test.