Enhance test to bug

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
enhance test

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>
fix ast_delete()

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>