Added IdCache unit test.
Fixed script error.
Fixed script error.
Fixed TestIdCache hanging on linux.