updated test to use api (not api1)