unit test code in progress
Fixed the ut issues
1. DO NOT use 2 level indirection in thread private data
2. Be very careful of the fixture data being a separately allocated
   chunk of memory, managed internally by glib.