Fix unittest to pick an open port