add test cases, update create api, update readme example