Moving to dirname for test paths