added test for compound type