test for java concurrency