Adding a test and making the bash version create a valid hash