Randomize ports during tests