Make tests phpunit compatible so they can be run from CLI