Changed deprecated access to error.message
Added a new testcase for filecheck.py