added testcase for structs