add tests for save_condition kwarg in document.save()