Added multi-threaded tests