Pedrosa ends Sepang test on top