There are now minor differences in the output between PHP and Python versions, so introduce specific tests.