Fixes test to increment the counter in a non-atomic way.