Create test_hash2str.pl

Test for subroutine hash2str.