Improved, create canvas element, and get 2d context in each test