Fixing Issue Where Some Hashes Cannot Be Decoded

Fix for issue #7 and new test case