Add more tests for ASTManager
Refactor getKeywordsForPosition