Updated MessageFactory class visibility
Added MessageFactoryTest