Corrected failing test

* Corrected assert_equal for every object had id

[#54151674]