Adding tests for new features.
Rearrange gradient stop args (because optional argument isn't useful as the
first parameter).

Fix to avoid adding extra attributes to fe* elements.