Add tests for pseudotypes to json tests

Over the shoulder from @Tryneus.
Merge branch 'next' into sam_2134_iii