update test http server to allow multiple register of handler