tests for flask app