test(addCanvas): unit tests for canvas to addFiles
closes #1198