Junit test case for getItem() in ItemList

Junit test case for getItem(), as well as bug fixing for getItem()