Fix failure spec derived from sequential 'id'

The id has to be retrieved from the real object instead of depending
the order of creation of the objects because Postgresql does not
initialize the sequential number in each tests.