Added locks to queue, single test is working