JCBC-479: Fix comparison failures in unit tests.

Change-Id: I74d8970f7ad5cacbe0cc7558884c02b48a4a749f
Reviewed-on: http://review.couchbase.org/40724
Reviewed-by: Michael Nitschinger <michael.nitschinger@couchbase.com>
Tested-by: Michael Nitschinger <michael.nitschinger@couchbase.com>