Fix unit test for invalid port number - dart:io socket now has stricter checks