Test Session.init and Session.checkvote with mocks