Pass a mocked port finder in test