improve test for attrib::nexttype correctness.