fix helpers.php parse error, move to psr4, add tests