add tests when remove with exceptions