added test for HDUtils.formatPath and fixed HDUtils.parsePath

So it can handle the paths created from HDUtils.formatPath.