add tests for hash