refactor for broken tests

broken tests are testSaveSuccessPngDefaultPahtandPathMethod
testIsWritable
testIsValidDir