It could be a bug - did you try to set the testval to different number?
tmx = Categorical('tmx', pn, testval=2)