Replaces port in tests to a config parameters, less hardcode stuff...