checkFile fixes + tests
fixed test for checkConstant
renames