Fixed the truncated test in the PHP tests. I added better comments as well.