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 ?