Uint8Array conversion not needed on nodejs crypto.
Add some tests.
Fixed variable name.