Add unit test for last mod.