While driving the car accelerates suddenly when brake applied
Is this RAV4 equipped with a standard transmission?
Remove all floor mats, test it again. Is this repeatable?
A faulty power brake booster might cause that. Ask you shop to test the ability of the brake booster to properly hold vacuum.