add tests for bucket save error