Add unit tests for Lattice class.