add maxResolution
update Tests