Optionally build tests.