Fixed hasMany relations. More tests.