gosquared: port tests
Merge pull request #302 from segmentio/test/gosquared

gosquared: port tests