Fix all api tests