Add test case for 'hasMany.remove' fix.
Merge branch 'fix_hasMany_remove'