Fix pixel-ratio tests

Fix pixel-ratio tests and use proper pixel-ratio in case of browser + use mockable window in player