Add tests

This adds a test for the 'generate_id' method, and all the configuration needed
to run tests.

Change-Id: Iaf8158da1f96853f3880f1b8e6ade5d466e27c64