test cases for head