Added test logging using KK_LOG env variable and proper transaction
usage in BPMN engine.