fix api test always specify format=json in api calls