CBQE-596: add test for views which have flags in map fn

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