tidying up of tests
removes global variable newItem