Update test to also test left and right cutoffs

In order to make sure that the left and right cutoffs aren't wrongly
modified they are included in the trace_variable test