More test cases for gradients with alpha channel

* Swapping the opaque and transparent ends leads to different results,
* Linear gradients are also affected.