Fingerprinting dark energy. II. Weak lensing and galaxy clustering tests