Added tests for instance.save