[PATCH v2 24/32] dm: core: Add tests for oftree_path()