improved WebServer class for REST test cases