Add some tests for remote_port