r: Add option for tests

`make check` accidentally got left in on the last upgrade. Adds a few minutes
to the build time, but useful enough to be left in as an option.