api tests: use gocheck