added support and tests for <head>