adding tests for hash