testing hash methods