convert test_sdl_canvas to btest