tests: improve timeout tests