Added check of number of calls in AJAX test
Added comments to test failure
Refactored + added support to fractional `devicePixelRatio`