test processTx

also make its interface more extensible
processTx handles single transaction