in the example - it should NOT be
ns_set put $extraheaders "Content-Type" "test/html;"
but rather
ns_set put $extraheaders "Content-Type" "text/html;"
i.e. not TEST, but TEXT