Don't use check for tests

The tests are so simple that we could rather just add implement
that tiny little function ourself instead of depending on another
library and not be able to test it on all platforms..

Change-Id: I930146bfe8818188cd50bec8440d41d1ea9626c9
Reviewed-on: http://review.couchbase.org/26925
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>