little fix in change resolution. added corresponding test