test for canvas element