added test to make sure 1st item is accompanied by necessary codes