improvely: port tests

/cc @ianstormtaylor