Improved checks for invalid IPv6 address.  Updated unit tests