NO_THREADS mode for tests