added tests for getHead()