fixed compiler errors
added tests
using crypto_hashblocks_sha256 with "ref" usage, cause the code is shorter
added one more test from nacl test suite