Added tests
Merge branch 'save_transaction_bugfix' of https://github.com/vicli/rails into save_transaction_bugfix