Refactor DAO tests; add tx utils class for testing transactions