move api to new version and add tests

It sounds like importing a JS file.