Renamed variable in test, added phpdoc