Add test case AstBuildFailTest