added some test functionality in string generation.