tests: simplify Makefile.am

* There's no need to use 'export' to set variables here.
* Check for the exit code of the current test run can be
less verbose by using the || operator.