Fix Lattice unittests.