Give the original mechaninc and rebuilder a chance to make good. Show them the test results that showed the rebuilt alternator is not functioning and have them propose how they will correct this mistake. That's what a warranty is for, eh?
Then, if they can't get you a satisfactory product, you would be justified in asking for a refund and taking your business elsewhere.
Best Regards,
Jim