Fail tests immediately when timeouts happen. Fix some tests