Modify tests script to reflect new calling method of cpi