In Node.js version 11.10.0 and later, the writeHead() function returns "this".
Added res.end() call in application and response status check. Also, renamed to test_node_application_write_before_write_head.