Allow tests and their dependencies to be optionally included with --with-tests configuration parameter.