add test for checking validity of TransactionDto