updated flask tests