- rename getParent to getDirectoryPath
- add unit tests