Added res.end() call in application and response status check. Also, renamed to test_node_application_write_before_write_head.
Added res.end() call in application and response status check. Also, renamed to test_node_application_write_before_write_head.