Pass all the state tests in `sanity-check_small-config_32-vals` (#108)
* Make sure all tests are checked and fix an issue in slot progression * Fix an overflow issue and flush stdout when running tests * Add parameter to allow only running one test * Fix epoch overflow and an issue related to effective balance * Add test for permuted_index * Fix a bug in beacon block index calculation * Fix an issue in attestation inclusion * Fix missing logic for handling deposit * Shouldn't use wrapping