Make tests/test_rhash.sh portable

This script uses awk to generate binary files but this is not portable
because `printf' prints multibyte characters on some locales
(e.g. en_US.UTF-8).

This commit resolves this issue by embedding test data directly.