test unit for file structure