Add tests and modify a validation in Image::ColorDetector