Added pixel ratio test
(cherry picked from commit 38c8812ead721add179f0899c6fd8fc6673b4b95)