Test instantiation of parameterized classes