Improved PHP unit tests.