Adds 4 thread-safety tests.