Added test casses and refactored test for Request#port