Fix some tests by properly initiallizing the nextId field.
Removed a test that is no longer relevant as ids do not get reused.