add test for flaskr: from flask test tutorial