moved testReversibilityWithFile to a better place