refVersion is out of sync by 1 for each version. This happens becuase the origin documents version number is not incremented untill after the mongose pre save hook is run.
Incrementing the versionCopy's refVersion (if not zero) mimics the behavour and caused the version number to correctly sync up.
Merge pull request #11 from benjamta/master

refVersion is out of sync by 1 for each version. This happens becuase th...