Added unit tests around the AddItemDialogController