Added tests for canvas model.