#41 Tests for History, various minor fixes
#41 Replace doc._blockchain with History instance