Fixed #103. Refactored test_api.py into multiple files.
Forgot to import make_response.

This ticket also relates to #103. By now we should be able to run all
the tests.