fixed port validation
fixed tests; added test for Validator
builder add method returns the builder