fixing viewport and tests for different dot and platform