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.
Merge pull request #1203 from squidsoup/doc/testing-example

Docs: Fix for API test client example