Add tests for fetchOrSave()