CBQE-1518: add test case to verify fix for MB-8825

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