First tests + Simple Miner State Machine