Fix reference to JSON encoder
Use Application rather than :application for conf
Improve tests, clean up
Try to send an error in test

This way if you run the tests with an actual API key you can confirm
that everything is working.
Make intentional error more obvious