lots of tests for IPv6 and a start on fixing most of the errors