Changed logic for experiments 2 - 4

- reordered locks and unlocks of a mutex
- increased a number of tests to be run in each experiment
- bug fixes
- minor imprevements