Fixed a toggling testcase. It was not threadsafe