Removed the broken api_network test
Removed the duplicate test in api_startup
Spelling and some warnings
Performance increase, replacing the thread map with a thread_local variable