adjusted persistence configuration for jbpm-test
dispose of LocalTaskService on disconnect as it's a generic way to end interaction with TaskService
close entity manager when no more needed