Remove unused variables
Add testcases for CodeFile::getExt()