Changed the test to do an explicit rollback incase of an exception.
Fixed integrity_error_logging test to rollback the transaction.