Added testing for repository item.
Added testing for repository item. Improve top loading item logic.