update tests and phpdoc comment