added test, that shows wrong folding; some very old changes, which fix working with correct ComputeRun from DB