[BUGFIX beta] #4443 - Implement testing suite for removeObjects method
[BUGFIX beta] #4443 - Replace forEach with a regular for loop
Merge pull request #4807 from dentuzhik/fix-remove-objects

[BUGFIX beta] Fix remove objects