keenio: port tests
Merge pull request #308 from segmentio/test/keenio

keenio: port tests