refactored mfi test