add lock to test id counting from len on tests
Merge pull request #54 from nwlunatic/fix_multiprocess_with_id

add lock to test id counting from len on tests