Implement hash commands
Add simple tests for hash commands