Had a missing check in addItem(), and an improper test case in unit
tests