Address JUnit test failure on HtmlCanvas