Randomize ports during tests
changed to use use class name for static method