A couple people said earlier that it should work. I saw two videos of someone doing it on YouTube.Servo testers are built for the purpose of testing a hobby RC servo. Their output is one cycle every 20 ms and is on for somewhere between 1 & 2 ms.
I doubt that they can effectively be used to control an ESC which expects a signal on from 0 to 100% of each cycle. The best you’ll get out of the servo tester is 10% ( 2ms / 20ms = 10% )
This would give you about a 0.5V output from the ESC (10% of 5V). Which likely won’t move the servo motor.
The code examples you’ve been given should work, if the microprocessor is wired correctly, pin assignments in the code are correct, the pot is of good quality…
So as Yaakov said, it’s impossible or at best strongly unlikely that this can be debugged remotely. Sorry, I’m out as well.