test the struct definition