use junit annotation for memory directory test