CBQE-2165 test the reverse the ordering of the 'log' output and the 'erlang dump' output

Change-Id: Ie9b8110e6926ff6692c7aa5c50dd5aba375fae40
Reviewed-on: http://review.couchbase.org/35160
Tested-by: Thuan Nguyen <soccon@gmail.com>
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
CBQE-2154:tuq fix view query tests

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