imroved test environment: adjustable canvas test width and height