add regression test about filtering on an embedded hasMany

updated test of #568