Add failing test for hasMany relationships

If adapter does not return any data for a hasMany relationship,
the unsaved hasMany records disappear from the relationship.
Fixes #1466