Added meth tests by mocking a Flask app