fixed a problem with test_Api.js