unit test using flask.ext.testing.TestCase