code refactored

There is some misunderstanding of how the paths are used. When i changed them, results also changed: there are up to 6 extra failures which are similar to #testProcessInstanceStatus_StartAndEnd test in which no RUNNING instances found, while 1 is expected. So i left them for a while. In total, here 15 tests pass and 1 fails.