test met httpserver in thread