use concat in validatePath, add unit tests and API documentation