add test functions for PoS voting, several small fixes, update checkpoints