1. randomized sg names. 2. new testcases taken from mainline master bran...

...ch and other related changes