full testing of returning the correct hash