Added multi threaded tests.