Improved tests and added some more, did some refactoring, deleted SHA512Generator test which was not essential