testbase: make test timeout configurable

This allows us to set different timeouts for smoketest (5 mins)
and integrationtest (1hr)