Fix faulty tests.