Updating directory structure and writing device test files