tests: sanitize the environment

DISPLAY can cause the linuxcnc starter script to pop up X windows,
which we never want.

Some tests emit locale-sensitive strings, so reset the locale to a sane
default before running tests.