two tests loop in retrieveItem?