Add test for autounion type