[PATCH v2 16/24] dtoc: Use pathlib to find the test directory