CBQE-0: optimize code tuq tests

Change-Id: I78954075aa698bb6cda7ab838ccba27bf1db861f
Reviewed-on: http://review.couchbase.org/43755
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>
Tested-by: buildbot <build@couchbase.com>