Modify test common action.
Add getTradesSold implementation and test.