Added transaction controller test to verify that in case of error an exception is thrown.