Updates to error messages and tests, added correct hash index to Rakefile.