Remove `Struct` defined check in test.
Merge pull request #2101 from take-cheeze/struct_test

Remove `Struct` defined check in test.