Added helpers for cwebp options
Refactored tests