test: Refactoring the AST for the static qualifier