Fix unit tests
Cleanup unit tests
Fix #158: GD alpha detection + Color::isOpaque are broken