Hash Testbench Instantiation and Algorithm Loop Analysis

The testbench for the hash algorithm was updated with a specific
"assert" test to aid in more quickly determining whether the algorithm
is working or not. Several loops in the algorithm, itself, were also
analyzed for correctness in the counting indices.