Add Code Coverage

Change-Id: Ie6085a792b8220b5d9f2f194eef94e31fd0d5f4f
Reviewed-on: http://review.couchbase.org/37648
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>