Refactored test. It now makes 2 calls to port