Fixed TemporaryPath#getRoot() behavior
Added test and fixed getParent() behavior