general-refactor: expand all tests to run in Flask case as well