Support listnum. Adding regression test