tests: Add bench-slope.

* tests/bench-slope.c: New.  This is a stripped down version taken
from master.
* tests/Makefile.am (noinst_PROGRAMS): Add bench-slope.