Make the tests and exam more robust.