Add test case for instantiation using local name