Add hash commands and tests.