Bug 1077136 - fix resultset with missing revisions on ingestion

also fix broken tests