split functionality of canvas test in many files