Update tests.php

Update the syntax to reflect setting username/password in the constructor rather than after initialization. This is needed due to the shoddy way that rpc_version is shimmed in to the constructor.