flaskr and unittesting in flask