Trim error message.
Add unit test about path::isSubPathOf().