add test for checking transaction dto is null