TST/CLN: centralize common valication methods in test_graphics