Fixed tests and validations for analog and digital read.