CBQE-2102: fix generating expected results

Change-Id: I8776c53d6c15babedf9d6b8bb2e71043cc0bf59f
Reviewed-on: http://review.couchbase.org/34256
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Meenakshi Goel <meenakshi.goel@globallogic.com>