fixed error in api_test, now passing