Unit test of trade matcher

Not complete but much closer after some debugging. Need to add more test
cases.