Add UT for TestAmbariFactory