making checkExistance, checkWritability, checkReadability testable