gfx: Add tests and fix Anti Aliased PutPixel/HLine.