tests for head and delete