Aligning insert/removal inversion tests with that in HashMap.js