Fix non-consistent constructor tests

Having no arguments in a constructor is not the same as having invalid arguments. Type hinted arguments are required. Depending on the PHP version and configuration this may throw an exception (as expected in the test) or trigger an other type of PHP error (and make the test fail).