FrappeClient PHP Error (400 Bad Request)

Hi,

I am trying to insert a record using Php Frappeclient, but unfortunately i am getting below error.
I am using administrator user for posting data.

My php code is,

<?php
require(dirname(__FILE__).'/FrappeClient.php');

try{

	$client = new FrappeClient();
	var_dump($client);
	$result = $client->insert(
					"Test"
					,array(
						"testing" => 123
					)
				);

	var_dump($result);

}catch(Exception $e){
	var_dump($e);
}

set_error_handler(function ($errno, $errstr, $errfile, $errline ) {
	throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
});

PHP Version is 5.6.40
ERPNext version is 12.

Anybody?