Update test for canvas contains method, less code