adding tests for exposing TransactionError to Ruby
cherri-picked the changes Stefan made earlier
Added tests for 243 (Making TransactionError available in ruby)