Fix fetch-history and add/update fetch tests.