Added unit tests to widget Breadcrumbs and refactor of Breadcrumbs::renderItem()

Agree. This refactoring doesn't make the original code better or worse. It's better we keep the original code.