Add sha512 test and benchmark.