test that the versionname value is set properly

I managed to write a test that covers the line I modified. Warning: I understood very little about the code I have been testing, which means my test makes probably little sense. @dbu : do you see any improvement I could add to it ?
Could call on "test", this is the remainder of less good values I added so yes, it should be v2, and now I wonder how come the test passes. Now, I also wondered how to set it automatically. I tried using `checkpoint()`, but the value stayed at `null`… Any ideas ?