Feature(api): Test empty token behaviour for API.