Add tests for getItems() and getItem()