added test case for struct