some hf test code