Created separate module for testing AST - helpers
Replaced undefined with panic in AST helpers