updated unit test for translateMonitorResource, fixed nullPointer bug for setUse_ssl