tests for hash