Make tests a configuration parameter

Enable tests via --with-tests configuration parameter, allowing test-only dependencies to be ignored for the purposes of installation.