Add test for linkage with named type