add tests for generating c structs from user types