Fixed syntax errors with reversed brackets

Just simple fix for hash_tests.rb