slightly improved the creation test for flask