Got unit tests working for id generator

I managed to get the unit tests working
using require.js.