test with api