changed test parameters to use preallocated listitem