Added a failing test for #2088.

This test ensures the serializer does not confuse a new record
returned in response to a delete with the original record when both
records are of the same type.