Added more tests
Made hidpi scale factor configurable