Added global timeouts for tests (so if something hangs in Travis, at least we know which test caused/detected the problem).