Added extra test for Reference::getHash