added some email tests. now using the isCashflow flag on transactions to indicate if the transaction is a transfer of money in or out of the system.