Added test flag -3 with DIR check