test for translating origin of drawing to center