adds some tests for simulate multithread scenarios