Add more tests for concurrency control and id extending