add example config file, fix test functions for PoS voting