support for pixel ratio in tests