unit test and structure