Assigning an id to prototype objects. Updating tests