You should also write a test case where `containsIdentifier` (or `isVariableDefined`) returns false for an undefined variable.