Added test for struct.