Fixed error with TransactionDAO that caused test fail