CBQE-1479: add tests for mb-8260

Change-Id: I3bdd5787a0edc1af95b2ddab00240101742e12fc
Reviewed-on: http://review.couchbase.org/27833
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
Tested-by: buildbot <build@couchbase.com>