Object instantiation test generator