Created MockObjectFactory
Added indentation, fixed spelling error