Add unit tests
No calculation necessary when sourcePixelRatio is 1
Add example