Finalize saving

refactoring of save to inventory service, see #7
added tests, see #3