add App::uses(‘autoload’,'Vendor’); in UsersControllerTest.php