Keep record of registered layers in our testing CANVAS.
Use a fresh (not fresh instance, but a clean one) for each test.
Merge pull request #1117 from akbargumbira/develop

Fix tortuous 3 failing tests