tests: transformed tests/sha256 into an unittest

Partial fix for issue #1131.

tests/sha256 -> unittest/tests-crypto/tests-crypto-sha256.c