CBQE-2397: comparision fns tests for n1ql

Change-Id: I63fc2263385cb8b327cc09b658ceaceb592204fc
Reviewed-on: http://review.couchbase.org/41227
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>