Unit testing on UBDapi

Unit testing on UBDapi and UnitTests/UnitTestUBDApi.php