add test for passing structs