Pass the unit test for displayAll() method