tests transactions