Fixed tests for the API.