add test, fix bug in election process (last voted not remembered), add file appender logger