Testing session states. Querying the database after rollback.