added tester of struct