trakio: port tests
Merge pull request #258 from segmentio/test/trakio

trakio: port test to new api