Docs: Fix for API test client example

In the API test client example ```data``` was not defined. There's also no need to define ```expected``` as we can just test against the dict.