Updating the test code of testInitLister