Fix test scripts after port changes