move validator, skip plot tests if matplotlib not present