fixing test
checking if the file exists before compiling