exit with code 1 if no file found; provides test