Testing rest in node