tests/bugfixes to ast.pdf_subtype assignment