fix broken test, new test for MB-7249

Change-Id: I0e9c0acbb988a2234242d3829472546fdc855316
Reviewed-on: http://review.couchbase.org/27260
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Artem Stemkovski <artem@couchbase.com>