- added removeFromIndex for unit tests