Added tests and dev dependencies
fixed a bug in transaction.rb
cleaned up spec helper