pass trend/rle to testing function