test code takes number of items as argument.