fixed hash test - going to refactor tonight!