CBQE-0: added test to verify fix for MB-9502

Change-Id: Iaa2235980ccf11701399a0fcab580a01b6a5f71c
Reviewed-on: http://review.couchbase.org/41078
Reviewed-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>
Tested-by: Sangharsh Agarwal <sangharsh.agarwal@globallogic.com>