added: content-type res.header
added: tests for root and poll endpoints