Tests: fix cross-domain detection test for non-default port

Tests: fix cross-domain detection test for non-default port