Added tests for n1ql