improved hash_tester