Thanks for your explanation.
The mechanic didn't do any tests you mentioned. There was a fuel overflow when I refilled the tank the day before I took this to the mechanic. So he directly suspected that there is something wrong with the fuel pump.
I guess I have to take the car to a different shop.