Tests for AddressValidator.
Adding two more test cases. Fixing a bug that was discovered by one of them.
Tests for PortValidator.