fix tests constructor, add missing phpdoc exception