#97 add tests for init and save