Standardize PHPUnit configuration

* Adds xml configuration for PHPUnit and a common bootstrap script.
* Refactors current test case for annotations.