Add unit test to cpputest framework for Version
Use of a static string to return a reference was causing unit tests to report a memory leak so function altered to return the formatted string by copy