fixed user logout bug
added login and logout tests to flask_tests.py