Add tests.
Use object_id instead of counting ourself
Get rid of VERSION constant