Add some tests. Moreover, port tests to checker[1]

clink should have many tests to ensure things don't break going forward
as maintenance takes place.

[1] https://github.com/pnathan/checker