changed test loop to changing values