Add test case for hasMany relationship where type is inferred