Introduce session_transaction method

...which provides the same functionality as the same named method in
flask.testing.TestClient.
Introduce test.sh