Make tests compile with latest rust version.