test for head method passed