add some test for API