Bug 550040 - Move GString, rand and printf tests to the unit test