pk verification in JSONConverter tests and some bugfixes