Make tests a bit more robust and add phpunit config file.