Wrote test case for addItem