add parameter validation. convert port to an integer.
add tests for domainFilter middleware