fix setPixel args validation test