Fix TypeUtil usage scenario, making sure always a childclass is used.
minor testclass changes