Directory: Fix directory test
HashMap, List: Initialize value of end item