add tests for add and remove methods of the collection class