Fix directory test