add small fixes to have the test.php file running with the changes as
well