Update the test of the API. Now all test pass.