Move t.end() calls earlier to avoid confusion
Move t.end() calls earlier to avoid confusion

The orderer.js tests contain asynchronous calls that are expected
to fail because of the negative tests. Currently the t.end() call
is placed at the outside of the callbacks, this results in the
error being printed AFTER the success printouts for the test suite.

This is confusing when running `gulp test-headless` because errors
get printed out after the summary table and it may appear that
the test run has failed.

Change-Id: I35cee62ed0514a6075f31b50a1d911546e153362
Signed-off-by: Jim Zhang <6775950e159d0bc2e58935ca2201ba88526dddf0@us.ibm.com>

adityachap/fabric-sdk-node,ratnakar-asara/fabric-sdk-node,adityachap/fabric-sdk-node,ratnakar-asara/fabric-sdk-node,ratnakar-asara/fabric-sdk-node,ratnakar-asara/fabric-sdk-node