Added tests using the Flask client.