added struct read unit test