Added api tests for flask.

`.decode()` had to be used to iterate through response data.