Added sha512 test
Merge pull request #3 from corebob/master

Added sha512 test + some cleanup