Fixed a bug in CouchbaseWrapper with empty documents. Changed return value of getDocument to DatabaseGetResponse to save some casts in production code. Adjusted tests to return proper return value in database mock.