fixing bad tests, removing flaky tests and commenting tests which require timeout.php