Added sha512 test + some cleanup