added transactions
added tests