Fix the generic_type template for test