fix the atdgen generated file cannot be pack
Added tests for parsers