Hi, I bought a bafang from china using amazon.co.uk, it took several months and made the mistake of fitting it to the bike before testing. It had 3 faults, a faulty controller, a faulty speed sensor and the pedal assist wouldn't work. After a month of not being able to ride my bike, I had a new controller sent from China but I still had the pedal assist fault. At this stage bought another bafang motor here in the UK with a good track record. Arrived in 7 days, tested it, and fitted it and goes like a dream.
With the second motor kit I was able to eliminate what was wrong with the first faulty motor and it is either the power assist pcb and or white connector or the round magnet senser. I figured by having a spare motor I will have readily available spare parts and can sort out the pedal assist problem at my leisure.
Anyway, the moral is don't buy, IMO, anything from china, because it takes ages to deliver and if it not tested you will have a hard time putting it right. Amazon won't want to help you out because by the time you have realised you been sold a dud you have ran out if warranty time. The chap in China I bought from said he had a repair agent about 80 miles from me but he didn't answer his phone.