Added ValueOfVersion.
More login v2 test coverage and fixes.