Connection: fix remote port forward type check
test: add port forwarding tests