Port gone handler tests.

Also DRY up the route_helpers a bit.