implemented multithreaded test to verify concurrency works