Fixed the case where removing twice the same component was not generating an error.
Tests for the Component manager.
Tests for the Component manager.