Add test to make sure we get correct rev history for deleted document