Add C API test support. This patch is based on @carsonmcdonald's. refs mruby/mruby#859.
Add C API test for mrb_format().