Move remove() and removeAll() to tests

This is done to keep deadcode quiet.
Merge pull request #139 from kortschak/deadcode

Move remove() and removeAll() to tests