test tests whether file exists