refactoring tests: use helper macro for checking array values
[tests] Make dir_init reusable
[tests] Test for directory entry creation
[fixup] Make dir_init really reusable
[tests] Add subdir test and some stub tests