added addItem test code