Top seed and world number one Serena Williams was forced to work for a three-set win over Flavia Pennetta at the Rogers Cup