Tests for non standard id - hasOne and polymorphic