Add revisions tests

Based on #275 and #277. These previously included the changes in #274 mixed in.