Testing dirname function