Added unit test for end-of-section case in ComponentMap.