PathValidation exported to its own class, added tests