TST/CLN: centralize common validation methods in test_graphics