add test for nested structs