fixed bug when parallel
added a test case (no collision)