Updating Electrum library and added some tests