fixed log issues in struct test main