fileexists test with -w, Class Extension Test