Implement path validator.
More tests.