Added missing casts in zlist selftest.