test: dm: add test for phandle access functions