crypto: Add test for sha.write(''); sha.end()

Assure that we don't break the behavior in #5762 in the future, since the actual fix for this was in https://github.com/joyent/node/commit/26ca7d73ca9c45112f33579aa5a1293059010779