add tests for js canvas