add some api test methods
fixed the method