Change ports from strings to ints in a unit test.