fix coding style by moving & to in front of spaces
state machine can check for successful log commits now; more code reusing
control state machine in TestActor()
add voting failure cases and passed them