[PATCH v4 32/44] dm: core: Add tests for oftree_path()