Fix phpunit error and documentation