better port tests