Fixing parallel execution problem

Adding a simple test to make sure that the before state is correct.