Fixing unitests for new __setitem__ validation
Fix #5081