Fix some flaky tests that need to be excluded.