hash: fix overrun in test code.