Add history back in to build_state so test will work. import hashlib before using it.