tests modified for writeHead / send body