fixed segfault in test3() in hashTest.cpp