JBPM-3814: Added test for tx race condition
work