www api and test