tests: Fix buffer overflow in bench-slope.