Use setUp to create MessageFactory