Added threading test.