t_trade: change the call method of test_trade()

1) "if __name__ == '__main__':" This will make test_trade() only can be directly called, so remove this condition.
2) Make the test can be called from shell through "$ python test_trade.py"

Signed-off-by: GuofengLiu <lgf612@sina.com>