Added debug logging of components
Removed @SuppressWarnings("unused") and added unit tests