fix test case for new Flask