update test and api