In a unit test I use an analogRead(), however it will not accept A0 etc as typical pin names. imho users expect these to work