Add unit test for ExpireNames and UnexpireNames.