adding sha1 and sha512
fix test