I'd say the gauge itself is ok. Testing it just requires removing the wire from the sender and grounding it to the tank, if it goes to full, its good. if not its bad. Now remove the sender, and hook up an ohm meter, slowly raise the float, and watch the values to see if they are jumping or losing readings anywhere in its range. Not sure of the ohm readings you would get, as some are different than others. It's possible you have a backfeed issue that makes it do that when its running, I guess one place to check is at the alternator, set your meter to ac volts, and start it up. Yes the dc side will show ac volts, just not more than 0.4 ac volts leakage past the diodes. That will show you if the alternator is weak, or going away giving ya goofy symptoms. Most issues are simply bad grounds somewhere in the boat, causing current to look for a place to come from or look for ground. Clean shiny grounds are important!