Add test case for 'hasMany.remove' fix.