[BUGFIX beta] #4443 - Implement testing suite for removeObjects method
[BUGFIX beta] #4443 - Replace forEach with a regular for loop