Config writeData fix. Semaphore Tests.