Refactored unit tests to original format and added IsPathRooted